package org.zfes.snowier.cloud.zbss.cms.tag.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsTag extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsTag() {}
	public CmsTag(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="tag名称不能为空")
	@javax.validation.constraints.NotBlank(message="tag名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="tag名称长度不能大于50")
	  private java.lang.String tagName;
 
	@javax.validation.constraints.NotNull(message="被引用的次数不能为空")
	
	  private java.lang.Integer refCount;
 
	
	  private java.lang.Long siteId;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	
	  private java.util.Date createTime;
 
	
	//<-------------------------------------------->
	public CmsTag setTagName(java.lang.String tagName){
		this.tagName=tagName==null?null:tagName.trim();
	 return this;
	}
	public java.lang.String getTagName(){
		return this.tagName;
	}
	public CmsTag setRefCount(java.lang.Integer refCount){
	 this.refCount=refCount;
	 return this;
	}
	public java.lang.Integer getRefCount(){
		return this.refCount;
	}
	public CmsTag setSiteId(java.lang.Long siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Long getSiteId(){
		return this.siteId;
	}
	public CmsTag setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsTag setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsTag setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}

}
